'use strict';

module.exports = app => {
  const { router, controller } = app;
  router.get('/api/category/list', controller.category.list);
  router.post('/api/category/add', controller.category.create);
  router.post('/api/category/update', controller.category.update);
  router.get('/api/category/detail', controller.category.findId);
  router.get('/api/category/del', controller.category.delete);
}
